package com.woniu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.dto.UserDto;
import com.woniu.entity.User;
import com.woniu.mapper.UserMapper;
import com.woniu.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Shikieiki
 * @description 针对表【user】的数据库操作Service实现
 * @createDate 2024-04-02 17:45:59
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
        implements UserService {
    @Resource
    UserMapper userMapper;

    @Override
    public UserDto findByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}




